			<div id="main">
				<div id="main_content">
					<h1>New <?= $new_page_model_name ?></h1>
					<? if(count($new_page_tabs)): ?>
						<form action="/admin/ajax_do_create/" method="post" class="ajax">
							<div class="tabs">
								<ul>
									<? foreach($new_page_tabs as $name => $field_list): ?>
										<li><a href="#tab_<?= md5($name) ?>"><?= $name ?></a></li>
									<? endforeach; ?>
								</ul>
								<? foreach($new_page_tabs as $name => $field_list): ?>
									<div id="tab_<?= md5($name) ?>">
										<? foreach($field_list as $field): ?>
											<?
												$this->load->view(
													$new_page_fields[$field]->get_view(),
													array(
														'field' => $new_page_fields[$field]
													)
												);
											?>
										<? endforeach; ?>
										<div class="br"></div>
									</div>
								<? endforeach; ?>
							</div>
							<div class="buttons">
                                <input type="hidden" name="object_class" value="<?= $page_type ?>" />
								<input type="submit" name="publish" value="Save &#38; Publish" />
								<input type="submit" name="save" value="Save" />
								<input type="submit" name="cancel" value="Cancel" />
								<div id="ajax_response"></div>
							</div>
						</form>
					<? endif; ?>

					<div class="br"></div>
				</div>
			</div>
			
			<? $this->load->view('admin/includes/side.php'); ?>
